import request from '@/api/request'

export function findAllRecommends() {
  return request({
    url: `/lejuAdmin/homeRecommend/findAllRecommends`,
    method: 'get'
  })
}

export function productsByPage(start,limit,data) {
  return request({
    url: `/lejuAdmin/product/productsByPage/${start}/${limit}`,
    method: 'post',
    data
  })
}


export function addRecommend(data) {
  return request({
    url: `/lejuAdmin/homeRecommend/addRecommend`,
    method: 'post',
    data
  })
}

export function findAllBrand() {
  return request({
    url: `/lejuAdmin/brand/findAllBrand`,
    method: 'get'
  })
}

export function delRecommend(recommendId) {
  return request({
    url: `/lejuAdmin/homeRecommend/delRecommend/${recommendId}`,
    method: 'DELETE'
  })
}



